import LayoutBase from '../components/LayoutBase.vue'
import NotFound from '../components/NotFound.vue'
import UserPosts from '../components/UserPosts.vue'

const routes = [
    {
      path:'/',
      component:LayoutBase,
      children:[
        {
          path:'',
          component:UserPosts
        }
      ]
      // component:{
      //   index:IndexW,
      //   profile:UserProfile,
      //   posts:UserPosts
      // }
    },
    {
      path:'/article',
      component:LayoutBase,
      children:[
        {
          path:'category',
          component:UserPosts
        },
        {
          path:'author',
          component:UserPosts
        },
        {
          path:'article',
          component:UserPosts
        },
      ]
    },
    {
      path:'/system',
      component:LayoutBase,
      children:[
        {
          path:'user',
          component:UserPosts
        },
        {
          path:'role',
          component:UserPosts
        },
        {
          path:'permission',
          component:UserPosts
        },
      ]
    },
    { path: '*', component: NotFound },
  ]
  

// module.exports=routes;

export default routes